//
//  BattleSettle.h
//  SpaceStorm
//
//  Created by  mmj on 13-7-30.
//  战斗结算  歼灭胜利
//
#import "cocos2d.h"
#import "CCLayer.h"
#import "SlowBlood2Layer.h"

@interface BattleDestroyWinShipItem :  CCNode
{
    int shipType;  //战舰类型
    CCSprite* shipBlackBg;    // 战舰下面的背景
    CCSprite* shipBg;         //战舰
    
    SlowBlood2Layer* _blood;      //血槽
    
    CCSprite* shipLineBg;       //线条
    //用户文本
    CCLabelTTF* shipName; //战舰名称
    int bloodPercent;     //血条 百分比
    
    
    
}

-(void) updateDestroyWinShipInfo:(int) shipType1 shipName1:(NSString* ) shipName1 bloodPercent1:(int) bloodPercent1;


@end


@interface  BattleDestroyWinGoodsItem  : CCNode
{
    int goodsType;      //物品类型
    CCSprite* goodsBg;      //物品的背景
    
}

-(void) updateDestroyWinGoodsInfo:(int) goodsType;


@end


@interface BattleDestroyWin : CCLayer
{
    CGSize size;
    CCMenu*		menu;
    CCArray* _ourLoseList;      //我方损失列表
    CCArray* _enemyLoseList;      //敌方损失列表
    CCArray* _goodsList;            //战利品列表
    //用户文本
    CCLabelTTF* labelArmNeed;
    CCLabelTTF* labelPower;
    
    
}

#pragma mark -
#pragma mark 战斗结算的方法
+(CCScene *) scene;
-(void) initBackGround;
-(void) initHead;
-(void) initMenu;
-(void) initInfo:(CCArray*) ourLoseList1 enemyLoseList1:(CCArray*) enemyLoseList goodsList1:(CCArray*)goodsList1;
-(void) initTopDecorate;



-(void) updateLabelInfo:(int) armNeed powerNum:(int) powerNum;

#pragma mark -
#pragma mark 战斗结算方法处理
-(void) onPowerButton:(id)sender;
-(void) onSureButton:(id)sender;
-(void) onLeftArrowButton:(id)sender;
-(void) onRightArrowButton:(id)sender;


#pragma mark -
#pragma mark 战斗结算的属性
@property (readwrite) int armNeed;    //军需
@property (readwrite) int powerNum;   //战功

@property (readwrite, retain) CCArray* ourLoseList;      //我方损失列表
@property (readwrite, retain) CCArray* enemyLoseList;    //敌方损失列表
@property (readwrite, retain) CCArray* goodsList;       //战利品列表

@end
